package com.huawei.appgallery.foundation.ui.framework.widget.button;

import android.content.Context;
import android.util.AttributeSet;
import huawei.widget.HwDownLoadWidget;
import o.cdo;
import o.cjz;

public class BaseDownloadButton extends HwDownLoadWidget {
    private static String ॱ = "BaseDownloadButton";
    private int ˎ;
    private int ˏ;

    public BaseDownloadButton(Context context) {
        this(context, null);
    }

    public BaseDownloadButton(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 0);
    }

    public BaseDownloadButton(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.ˏ = cdo.ˏ(getContext(), 48);
        this.ˎ = cdo.ˏ(getContext(), 74);
        ˊ();
    }

    protected void ˊ() {
        if (ˊॱ() != null) {
            ˊॱ().setGravity(17);
            cjz.ˎ(ˊॱ());
            ˊॱ().setMaxWidth(this.ˎ);
            ˊॱ().setMinWidth(this.ˏ);
        }
    }

    protected void setText(CharSequence charSequence) {
        if (ˊॱ() != null) {
            ˊॱ().setText(charSequence);
        }
    }
}
